package com.ahearttogo.rpc.codec;


import com.alibaba.fastjson.JSON;

/**
 * 基于json的序列化实现
 * @author xiejialin
 * @date 2020/2/17 12:07 PM
 */
public class JsonEncoder implements Encoder {

    @Override
    public byte[] encode(Object obj) {
        return JSON.toJSONBytes(obj);
    }
}
